import { commonTableOptions } from '@/utils/util'

export const tableOption = function () {
  let self = this
  return {
    ...commonTableOptions,
    // height: self?.documentHeight - 450,
    searchMenuSpan: 12,
    menuWidth: 300,
    menu: true,
    header: true,
    addBtn: false,
    addBtnText: '新增',
    editBtn: false,
    delBtn: false,
    viewBtn: false,
    searchLabelWidth: 120,
    column: [
      {
        label: '中文船名',
        prop: 'p1',
        search: true,
        overHidden: true,
      },
      {
        label: '船首向',
        prop: 'p2',
        overHidden: true,
      },
      {
        label: '航向',
        prop: 'p3',
        hide: true
      },
      {
        label: '航速',
        prop: 'p4',
        hide: true
      },
      {
        label: '目的地',
        prop: 'p5',
        hide: true
      },
      {
        label: '船舶类型',
        prop: 'p6',
        search: true,
        dicData: [
          {label: '工程船', value: '工程船'},
          {label: '客船', value: '客船'},
          {label: '危化品船', value: '危化品船'},
          {label: '集装箱船', value: '集装箱船'},
        ],
        filterable: true,
        type: 'select',
        overHidden: true,
      },
    ]
  }
}
